import useTime from "@/hooks/useTime";

function InputPage() {
  console.log(22);
  return <input />;
}
interface ClockProps {
  time: string;
}
function Clock({ time }: ClockProps) {
  console.log(11);
  return (
    <>
      <h1>{time}</h1>
      <InputPage />
    </>
  );
}

export default function ClockPage() {
  const time = useTime();

  return <Clock time={time.toLocaleTimeString()} />;
}
